package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.model.search.vos.SearchArticleVo;

public interface ArticleSearchService {
    /**
     * ES文章分页搜索
     *
     * @return
     */
    ResponseResult search(UserSearchDto userSearchDto);

    /**
     * 添加索引文章
     */
    void saveArticle(SearchArticleVo article);

    /**
     * 删除索引文章
     */
    void deleteArticle(Long articleId);
}